.class Lcom/netease/newsreader/activity/SelectCity$10;
.super Ljava/lang/Object;
.source "SelectCity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/SelectCity;->updateIpCity()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/SelectCity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/SelectCity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/SelectCity$10;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    .line 340
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    .line 348
    iget-object v3, p0, Lcom/netease/newsreader/activity/SelectCity$10;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v3}, Lcom/netease/newsreader/model/City;->ipQueryCity(Landroid/content/Context;)[Ljava/lang/String;

    move-result-object v2

    .line 349
    .local v2, ss:[Ljava/lang/String;
    iget-object v3, p0, Lcom/netease/newsreader/activity/SelectCity$10;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/SelectCity;->access$5(Lcom/netease/newsreader/activity/SelectCity;)Landroid/os/Handler;

    move-result-object v3

    const/4 v4, 0x2

    invoke-virtual {v3, v4}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    .line 350
    .local v1, msg:Landroid/os/Message;
    if-eqz v2, :cond_0

    .line 351
    iget-object v3, p0, Lcom/netease/newsreader/activity/SelectCity$10;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    iget-object v3, v3, Lcom/netease/newsreader/activity/SelectCity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v4, 0x0

    aget-object v4, v2, v4

    const/4 v5, 0x1

    aget-object v5, v2, v5

    invoke-static {v3, v4, v5}, Lcom/netease/newsreader/model/City;->getCity(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map;

    move-result-object v0

    .line 352
    .local v0, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 354
    .end local v0           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/SelectCity$10;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/SelectCity;->access$5(Lcom/netease/newsreader/activity/SelectCity;)Landroid/os/Handler;

    move-result-object v3

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 355
    return-void
.end method
